<?php
/**
 * Author:xsc
 * Time:2023/9/5 10:01
 */

namespace App\Params\Common;

use App\Params\BaseParam;

class SpecialPrivilegeParams extends BaseParam
{

    public $mid;

    public $special_id;

    public $sku_code;

    public $sku_name;

    public $type;

    public $stock;

    public $end_date;

    public $amount;

    public function rules()
    {
        return [
            'mid'        => 'required|string',
            'special_id' => 'required|integer',
            'sku_code'   => 'required|string',
            'sku_name'   => 'string',
            'type'       => 'string',
            'stock'      => 'integer',
            'end_date'   => 'string',
            'amount'     => 'string',
        ];
    }

    public function message()
    {
        return [
            "mid.required"        => "商户号不能为空",
            "special_id.required" => "藏品id不能为空",
            "sku_code.required"   => "编号不能为空",
        ];
    }

    public function getMid()
    {
        return $this->mid;
    }

    public function getSpecialId()
    {
        return $this->special_id;
    }

    public function getSkuCode()
    {
        return $this->sku_code;
    }

    public function getSkuName()
    {
        return $this->sku_name;
    }

    public function getType()
    {
        return $this->type;
    }

    public function getStock()
    {
        return $this->stock;
    }

    public function getEndDate()
    {
        return $this->end_date;
    }

    public function getAmount()
    {
        return $this->amount;
    }

}
